package ar.com.rys.server.entities;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Partido {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String name;
	@Persistent
	private Provincia  provincia;
	
	public Partido(){
	}
	
	public Partido(Long id) {
		super();
		this.id = id;
	}

	public Partido(Long id, String name, Provincia prov) {
		super();
		this.id = id;
		this.name = name;
		this.provincia = prov;
	}
	
	public Partido(String name, Provincia prov) {
		super();
		this.name = name;
		this.provincia = prov; 
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Provincia getProvincia() {
		return provincia;
	}

	public void setProvincia(Provincia provincia) {
		this.provincia = provincia;
	}
	
}